package com.tbit.uqbike.object.pojo;

import com.tbit.common.entity.BaseEntity;
import com.tbit.uqbike.annos.Excel;
import lombok.*;

import java.util.Date;

/**
 * 领导账号对象 leader_account
 *
 * @author jing
 * @date 2021-05-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class LeaderAccount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 品牌ID
     */
    @Excel(name = "品牌ID")
    private Integer accountId;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phone;

    /**
     * 是否生效（0失效，1生效）
     */
    @Excel(name = "是否生效", readConverterExp = "0=失效，1生效")
    private Integer enable;

    /**
     * 添加时间
     */
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    /**
     * 到期时间
     */
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    /**
     * 备注
     */
    private String remark;

    public LeaderAccount(Date expireTime, Integer enable) {
        this.expireTime = expireTime;
        this.enable = enable;
    }

    public LeaderAccount(String phone, Integer enable) {
        this.phone = phone;
        this.enable = enable;
    }

    public LeaderAccount(Integer accountId, String phone) {
        this.accountId = accountId;
        this.phone = phone;
    }
}
